<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        html,body{
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            perspective: 1000px;
        }
        .box{
            transform-style: preserve-3d;
            position: relative;
            width: 200px;
            height: 200px;
            animation: rotates 2s linear alternate infinite;
        }
        .c1,.c2{
            position: absolute;
            left: 0;
            top: 0;
            font-size: 20px;
            line-height: 200px;
            text-align: center;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            color: white;
        }
        .c1{
            background-color: pink;
            transform: translateZ(0.1px);
        }
        .c2{
            background-color: purple;

            /* 
                因为所有的元素都是正面面向屏幕，背面朝着屏幕后。所以要实现翻转的效果，所以我们让页面一开始的时候就把背后的盒子先翻转180度，让正面朝着屏幕背后，这样当大盒子翻转的时候，背后的元素就可以正面朝着我们的屏幕了。
            */
            transform:  rotateY(180deg);
        }

        @keyframes rotates{
            0%{

            }

            100%{
                transform: rotateY(180deg);
            }
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="c1">我是mikaisa</div>
        <div class="c2">我在这里等你</div>
    </div>
</body>
</html>